import ajax from '@/utils/request'
import { concatUrl } from '@/utils'

/**
 * 获取保养方案数据
 */
export function getMaintainSchemeData(data) {
  return ajax({
    url: concatUrl('/v2/maintainHelper/maintain-helper/get-maintain-scheme-data'),
    data,
    method: 'GET',
    autoHideLoading: false
  })
}

/**
 * 获取原厂手册数据
 */
export function getFactoryManualData(data) {
  return ajax({
    url: concatUrl('/v2/maintainHelper/maintain-helper/get-factory-manual-data'),
    data,
    method: 'GET',
  })
}

/**
 * 获取商品工时费
 */
export function getGoodsLaborFee(data) {
  return ajax({
    url: concatUrl('/v2/maintainHelper/maintain-helper/get-goods-labor-fee'),
    data,
    method: 'GET',
  })
}

/**
 * 获取商品门店销售价
 */
export function getGoodsStoreSalePrice(data) {
  return ajax({
    url: concatUrl('/v1/goods/goods/get-goods-store-sale-price'),
    data,
    method: 'GET',
  })
}
/**
 * 获取商品门店销售价
 */
export function getGoodsMatchList(data) {
  return ajax({
    url: concatUrl('/v2/maintainHelper/maintain-helper/get-goods-match-list'),
    data,
    method: 'GET',
  })
}
/**
 * 反馈
 */
export function feedbackCreate(data) {
  return ajax({
    url: concatUrl('/v1/feedback/feedback/create'),
    data,
    method: 'POST',
  })
}
